<?php if($this->Session->check('Auth.User')){
  
} elseif ($this->Session->check('facebook')) {
    echo 'You have logined with facebook please logout to login to your backend!';
}else { ?>
<div class="users form">
<?php echo $this->Session->flash('auth'); ?>
<?php echo $this->Form->create('User'); ?>
    <fieldset>
        <legend>
            <?php echo __('Please enter your username and password'); ?>
        </legend>
        <?php 
        echo $this->Form->input('role', array('type'=>'hidden', 'value'=>'admin'));
        echo $this->Form->input('username');
        echo $this->Form->input('password');
    ?>
    </fieldset>
<?php echo $this->Form->end(__('Login')); ?>
    <?php echo $this->Html->link(__('Forgot Password?'), array('controller' => 'users', 'action' => 'forgotpws')); ?>
    <?php echo $this->Html->link(__('Create New Account?'), array('controller' => 'users', 'action' => 'add')); ?>
</div>
<?php } ?>